package org.bluedream.core.module.dao.goods;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.bluedream.core.module.entity.goods.Supplier;

/**
 * @ClassName SupplierDao
 * @Description TODO
 * @Author foxsand
 * @Data 16:24
 * @Version
 */
public interface SupplierDao extends BaseMapper<Supplier> {

    @Override
    @Select("select supplier.* " +
            " from tSupplier supplier " +
            "${ew.customSqlSegment}")
    IPage<Supplier> selectPage(IPage<Supplier> page, @Param("ew") Wrapper<Supplier> queryWrapper);
}
